package com.hand.test.service.impl;/**
 * @author Estelle@앙수청
 * @date 2019/7/20 9:28
 */

import com.hand.test.domain.Matter;
import com.hand.test.domain.StoreDTO;
import com.hand.test.mapper.MatterMapper;
import com.hand.test.service.MatterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  @author Estelle@앙수청
 *  @date 2019/7/20 9:28
 */
@Service
public class MatterServiceImpl implements MatterService {
    @Autowired
    private MatterMapper matterMapper;

    @Override
    public List<Matter> queryAllMatter() {
        return matterMapper.queryAllMatter();
    }

    @Override
    public Matter queryMatterById(Integer id) {
        return matterMapper.queryMatterById(id);
    }

    @Override
    public Integer addMatter(Matter matter) {
        return matterMapper.addMatter(matter);
    }

    @Override
    public void updateMatter(Matter matter) {
        matterMapper.updateMatter(matter);
    }

    @Override
    public void deleteMatter(Integer id) {
        matterMapper.deleteMatter(id);
    }

}
